Skip to content

Conversation

ericphamhoang
Copy link

Setup instruction should be

'database' => env('DB_DATABASE')

not 'database' => 'admin'

Copy link

@Giacomo92 Giacomo92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very useful one. After the upgrade to mongo3 I spent a lot of time to fix this issue

@Smolevich
Copy link
Contributor

Smolevich commented Jan 20, 2020

Mongodb has differents databases for authentication and using as source database
See docs
For example:
mongodb://myDBReader:D1fficultP%[email protected]:27017/test?authSource=admin

@Giacomo92
Copy link

Maybe the best choice is:
DB_AUTH @Smolevich

@divine
Copy link
Contributor

divine commented Jan 20, 2020

This needs to be closed but merged in #1917

@Smolevich
Copy link
Contributor

Duplicate, main functionality realized in #1917

@Smolevich Smolevich closed this Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants